   #if("$tabletype"=="legend")
    <table data-filter="#filter" class="footable" data-page-size="5">
      <thead>
        <tr>
          <th data-class="expand" data-sort-initial="true">
           名称
          </th>
          <th>
            IP
          </th>
          <th data-hide="phone,tablet">
           开机时间
          </th>
          <th data-hide="phone,tablet" data-type="numeric">
           线路
          </th>
          <th data-hide="phone">
            详细版本介绍
          </th>
		   <th data-hide="phone">
            客服QQ
          </th>
		   <th data-hide="phone">
            主页地址
          </th>
        </tr>
      </thead>
	  <tbody>
	  	
	  	#foreach($server in $nextServers)
	  	<tr class="next">
	  		<td><a href='/admin/servers/${server.id}' target="_blank">$!server.name</a></td>
			<td><a href='/admin/servers/${server.id}' target="_blank">$!server.ip</a></td>
			<td>#top($!server.top,$!server.opentime)</td>
			<td>$!server.line</td>
			<td>$!server.detail #recommend($!server.type)</td>
			<td>$!server.qq</td>
			<td><a href='/admin/servers/${server.id}' target="_blank">点击查看</a></td>
			</tr>
		#end
		
		#foreach($server in $priviousServers)
	  	<tr class="previous">
	  		<td><a href='/admin/servers/${server.id}' target="_blank">$!server.name</a></td>
			<td><a href='/admin/servers/${server.id}' target="_blank">$!server.ip</a></td>
			<td>#top($!server.top,$!server.opentime)</td>
			<td>$!server.line</td>
			<td>$!server.detail #recommend($!server.type)</td>
			<td>$!server.qq</td>
			<td><a href='/admin/servers/${server.id}' target="_blank">点击查看</a></td>
			</tr>
		#end
	  </tbody></table>
	  <a  href="/admin/servers/add" target="_blank">添加</a>
	  #end
	 
	   #if("$tabletype"=="ad")
	    <table data-filter="#filter" class="footable" data-page-size="5">
      <thead>
        <tr>
          <th data-class="expand" data-sort-initial="true">
           内容
          </th>
          <th data-hide="phone,tablet">
           开启
          </th>
          <th data-hide="phone,tablet" data-type="numeric">
           开始时间
          </th>
          <th data-hide="phone">
            结束时间
          </th>
		   <th data-hide="phone">
            权重
          </th>
		   <th data-hide="phone">
            位置
          </th>
		  <th>
		  	查看
		  </th>
        </tr>
      </thead>
	  <tbody>
	  	#foreach($i in [1..4])
	  	#foreach($ad in $ads.get($i))
	  	<tr class="ad${i}">
	  		<td>$!ad.ad</td>
			<td>$ad.enable</td>
			<td>$!date.format("yyyy-MM-dd HH:mm",$!ad.begintime)</td>
			<td>$!date.format("yyyy-MM-dd HH:mm",$!ad.endtime)</td>
			<td>$!ad.weight</td>
			<td>$!ad.index</td>
			<td><a href='/admin/ads/${ad.id}' target="_blank">查看</a></td>
			</tr>
		#end
		#end
	  </tbody>
	  	</table>
	  <a href="/admin/ads/add" target="_blank">添加</a>
	  #end